<template>
	<base-tag :options="options" v-model="val"></base-tag>
</template>

<script>

	import BaseTag from './base-tag';

    export default {
        name: "field-tag",
		props:{
        	options:{
        		type: Object,
				required: true,
			},
			value:{
        		required: true,
			}
		},
		components:{
        	BaseTag,
		},
        data() {
            return {}
        },
        computed: {
			val:{
				get(){
					if(!this.value){
						return [];
					}
					return this.value;
				},
				set(value){
					this.$emit('input', value)
				}
			}
		},
        methods: {},
        mounted() {

        },
        created() {

        },
    }
</script>

<style scoped>

</style>
